cc=open("f.txt","a+",encoding='utf-8')
print(cc.write("\n这是最后一行了"))
print(cc.write("\n我爱python"))
cc.close()